import { request } from '@umijs/max';

interface BindChannelgProps {
  mobile: null | number;
  securityStatus: number;
  id: string;
  pageNo: number;
  pageSize: number;
  count: number;
  maxRegisterTime: string;
  minRegisterTime: string;
}
export function usersDetails(params: Partial<BindChannelgProps>) {
  return request('partner/referral-user/search', {
    method: 'post',
    data: params,
  });
}

/**
 * 冻结商户
 */
interface BindSecurityStatus {
  id: number;
  securityStatus: number;
  securityRemark: string;
}
export function SecurityStatus(params: Partial<BindSecurityStatus>) {
  return request('partner/user/update-user-security-status', {
    method: 'post',
    data: params,
  });
}

/**
 * 修改管理员密码
 */
export function modifyPassword(params: any) {
  return request('/partner/modify-password', {
    method: 'put',
    data: params,
  });
}
